package com.ibeetl.admin.aod.conf.function;

import com.ibeetl.admin.aod.entity.AodIndustry;
import com.ibeetl.admin.aod.entity.AodIndustryData;
import com.ibeetl.admin.aod.service.AodIndustryService;
import com.ibeetl.admin.core.rbac.tree.OrgItem;
import com.ibeetl.admin.core.service.CorePlatformService;
import org.beetl.core.Context;
import org.beetl.core.Function;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AodIndustryFunction implements Function {

	@Autowired
	AodIndustryService aodIndustryService;
	
	public Object call(Object[] paras, Context ctx) {
		AodIndustry aodIndustry = aodIndustryService.queryById(paras[0]);
		return aodIndustry.getIndustryName();
	}
	
}
